package org.example.demo_xiaowuz.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RequestPage {
    private Integer currentPage=1;
    private Integer pageSize=10;

    public Integer getOffset() {
        return (currentPage-1) * pageSize;
    }
}
